<?php
include("../admin/cls/cls_user.php");
include("../admin/cls/sesion.php");
session_start();
if(!$_SESSION[""]->nombre)
	{
		header("Location:index.html");
	}
 $user_id=$_SESSION[""]->id;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Alvarmat Site</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="../style.css" rel="stylesheet" type="text/css" media="screen" />
<script src="../js/chat.js" type="text/javascript"></script>
</head>
<body onload="javascript:startChat(<?php echo $user_id ?>);">
<div id="wrapper">

<div id="header-wrapper">
	<div id="logo">
		<h1><a href="#">SFELNET</a></h1>
		<p><em> by sfel</em></p>
	</div>
	<hr />
	<!-- end #logo -->
	<div id="header">
		<div id="menu">
			<ul>
				<li class="current_page_item"><a href="../home.php">Home</a></li>
				<li class="current_page_item"><a href="../profile.php">Perfil</a></li>
				<li><a href="../user_friends.php">Amigos</a></li>
				<li><a href="../logout.php">Log Out</a></li>
			</ul>
		</div>
		<!-- end #menu -->
	</div>
	<!-- end #header -->
</div>
<!-- end #header-wrapper -->

<div id="page">
	<div id="content">
			<table>	
	<tr>
	<td>
		<div id="div_chat"  style="height: 353px; width: 320px; overflow: auto; background-color: #ffffff; border: 0px solid #000000;">
			<table>
			<tr>
				<td>
					<?php echo $_SESSION[""]->nombre ?>
				</td>
			</tr>
				<tr>
					<td>
					<textarea disabled="true" id="message_chat" name="message_chat" rows="18"  cols="20" style="width: 300px;" >
					</textarea>
					</td>
				</tr>
				</table>
		</div>
		</td>
		</tr>
		</table>	
		<div id="div_chat_controls"  style="height: 150px; width: 320px; overflow: auto; background-color: #ffffff; border: 0px solid #000000;">
		<form id="frmmain"  onsubmit="return blockSubmit(<?php echo $user_id ?>);">
		<table>
			<tr>
				<td>
					<input type="button" name="btn_get_chat" id="btn_get_chat" value="Refresh Chat" onclick="javascript:getChatText(<?php echo $user_id ?>);" />
					<input type="button" name="btn_reset_chat" id="btn_reset_chat" value="Reset Chat" onclick="javascript:resetChat();" /><br />
				</td>
			</tr>
			<tr>
				<td>
					<textarea onkeypress="ifEnter(this,event);"  id="txt_message" name="txt_message" style="width: 300px;" /></textarea>
				</td>
			</tr>
			<tr>
				<td align="right">
					<input type="button" name="btn_send_chat" id="btn_send_chat" value="Send" onclick="javascript:sendChatText(<?php echo $user_id ?>);" />
				</td>
		    </tr>
	</table>
		</form>
		</div>		
	</div>
	<!-- end #content -->
	<div id="sidebar">
	<h2>Tu informacion</h2>
		<ul>
				<li><a href="../Images.php">Fotografias</a></li>
				<li><a href="../editProfile.php">Informacion</a></li>
		</ul>
				<h2>Sitios de Interes</h2>
				<ul>
					<li><a href="http://www.google.com">Google</a></li>
					<li><a href="http://www.facebook.com">Facebook</a></li>
					<li><a href="http://www.twitter.com">Twitter</a></li>
					<li><a href="http://www.sfel.net63.net">Servicios Computacionales</a></li>
					<li><a href="http://www.felcorp.com">otro</a></li>
				</ul>
	</div>
	<!-- end #sidebar -->
	<div style="clear: both;">&nbsp;</div>
</div>




<!-- end #page -->

<div id="footer">
<p> Copyright (c) 2011 <a href="www.sfel.net63.net"> Sfel. </a>.</p>
	</div>
<!-- end #footer -->
</div>
</body>
</html>

